package week_07.ReversePolishExpression;

import week_07.Stack;

/**
 * @author HP
 * 3*(17-15)+18/6
 */
public class ReversePolishExpression {
    public static void main(String[] args) {
        String[]  notation={"3","17","15","-","*","18","6","/","+"};
        Stack<String> stack = new Stack<>();
        int result=stack.polishExpression(notation);
        System.out.println("逆波兰表达式的结果为:"+result);

    }
}
